package com.cn.sl.server.api.system.user.model.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank

@Schema(description = "验证密码")
class CheckPasswordParams(
    @field:Schema(description = "密码")
    @get:NotBlank("请输入密码")
    var password: String?
) {
    fun toDto(): CheckPasswordDto {
        return CheckPasswordDto(password!!)
    }
}

data class CheckPasswordDto(
    val password: String
)